package com.cxria.springboottest.repository;

import com.cxria.springboottest.entity.Role;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface RoleRepository extends BaseRepository<Role, Long> {

	@Query("select r from Role r where r.roleName = :roleName and r.remove = false")
    Role findByRoleName(@Param(value = "roleName") String roleName);

}
